{extend name="public:layout" /}
{block name="title"}会员列表{/block}
{block name="head"}
{:widget('common/Form/icheckRes')}{:widget('common/Form/validRes')}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 用户管理</a></li>
                <li class="active">编辑用户</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="uid" value="{$info.uid}"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户名</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入用户名"
                               name="username" value="{$info.username}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" placeholder="不修改密码请留空"
                               name="password" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户昵称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入昵称"
                               name="nickname" value="{$info.nickname}" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">状态</label>
                    <div class="col-sm-4">
                        <label class="radio-inline i-checks">
                            <input type="radio" checked name="status" value="1"
                                   {eq name="info.status" value="1"}checked{/eq} /> 正常
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="status" value="0"
                                   {eq name="info.status" value="0" }checked{/eq} /> 禁用
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">备注</label>
                    <div class="col-sm-4">
                        <textarea class="form-control" rows="3" placeholder="请填写备注信息"
                                  name="remark" >{$info.remark}</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" onclick="ajaxSubForm();" type="submit">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
    })
</script>
{/block}